﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:PSE.Framework.UI.Controls.SmartClient;assembly=PSE.Framework.UI.Controls">

    <!--BEGIN GRIDSPLITTER-->
    <Style x:Key="ControlGridSplitterPreview">
        <Setter Property="Control.Template">
            <Setter.Value>
                <ControlTemplate>
                    <Rectangle Fill="{DynamicResource BrushGridSplitterPreviewBackground}" SnapsToDevicePixels="True"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Controls:HorizontalGridSplitter}">
        <Setter Property="PreviewStyle" Value="{DynamicResource ControlGridSplitterPreview}"/>
        <Setter Property="HorizontalAlignment" Value="Stretch"/>
        <Setter Property="VerticalAlignment" Value="Center"/>
        <Setter Property="Height" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:HorizontalGridSplitter}">
                    <Border Background="{DynamicResource BrushGridSplitterBackground}" Height="{TemplateBinding Height}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True" VerticalAlignment="{TemplateBinding VerticalAlignment}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Controls:VerticalGridSplitter}">
        <Setter Property="PreviewStyle" Value="{DynamicResource ControlGridSplitterPreview}"/>
        <Setter Property="VerticalAlignment" Value="Stretch"/>
        <Setter Property="HorizontalAlignment" Value="Center"/>
        <Setter Property="Width" Value="3"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:VerticalGridSplitter}">
                    <Border BorderThickness="{TemplateBinding BorderThickness}" Width="{TemplateBinding Width}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{DynamicResource BrushGridSplitterBackground}" SnapsToDevicePixels="True" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END GRIDSPLITTER-->

</ResourceDictionary>